SEND NET MESSAGE STRING
This command will send a message containing a string to the specified player.
SEND NET MESSAGE STRING Player Number, String
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
String
String
The string to send
This command does not return a value.
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you.
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message string 0,"hello world"
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=3 then ReturnString$=net message string$()
get net message
endwhile
endwhile
MULTIPLAYER Commands Menu
Index